package com.zhongan.boot.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

@WebListener
public class ServletContextEventListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		System.out.println("SerlvetContext销毁");
	}

	@Override
	public void contextInitialized(ServletContextEvent arg0) {
		System.out.println("SerlvetContext初始化");
		System.out.println(arg0.getServletContext().getServerInfo());
	}

	
	
}
